package net.oschina.dajiangnan.tree.demo;

import net.oschina.dajiangnan.tree.CommonNode;

import java.util.Random;
//x.a赋随机值的节点实现
public class CommonRandomA extends CommonNode<X> {
    @Override
    protected void processBusiness(X x) {
        x.setA(new Random().nextInt(100));
        System.out.println("set x.a " + x.getA());
    }
}
